package service;

import java.util.ArrayList;
import java.util.List;

import dao.NotesDao;
import entity.Notes;
import entity.OnteComment;

public class NotesService {

	NotesDao notesDao=new NotesDao();
	
	public List<Notes> selectNotes(){
		return notesDao.selectNotes();
	}
	
	/**
	 * ���ݱʼ�id��ѯ�ʼ�
	 * @param notesId
	 * @return
	 */
	public Notes notesId(int notesId) {
		return notesDao.notesId(notesId);
	}
	
	public List<OnteComment> selectOnte(int notesId){
		return notesDao.selectOnte(notesId);
	}
}
